/**
 * 
 */
package com.eis.thirdsys.connector;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import com.eis.thirdsys.connector.conf.ConnectorConfig;
import com.eis.thirdsys.connector.parameter.ParameterValue;

/**
 * @author panwei
 *
 */
public interface ThirdSysConnector {
	public boolean init(ConnectorConfig connectorConfig) throws Exception;
	
	/**
	 * 
	 * 
	 * @return
	 */
	public ArrayList<HashMap<String, Object>> getFunctionSchema(String functionId, String dataFetchId, List<ParameterValue> callParameters) throws Exception;
	
	/**
	 * 
	 * @param
	 * @return
	 */
	public ArrayList<HashMap<String, Object>> getFunctionData(String functionId, String dataFetchId, Date lastFetchDate, List<ParameterValue> callParameters) throws Exception;
	
	public void dispose();
}
